package enode

import (
	"common/pb"
	"enode/store"
	"go.uber.org/zap"
)

type Config struct {
	Address   string `help:"监听地址" default:"[::]:18081"`
	PiecePath string `help:"文件存储目录" default:"/data_dir/enode_store"`
	StoreMode string `help:"文件存储模式" default:""`
}

type PiecestoreServer struct {
	log    *zap.Logger
	config *Config
	pb.DRPCPiecestoreServer
	store store.Store
}
